package com.sky.mall.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.sky.common.validated.AddGroup;
import com.sky.common.validated.UpdateGroup;
import com.sky.common.validated.annotation.ListValue;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * 品牌
 *
 * @author jiapeng
 * @email really2008@126.com
 * @date 2021-02-13 14:56:14
 */
@Data
@TableName("pms_brand")
public class BrandEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @Null(message = "ID必须为空", groups = AddGroup.class)
    @NotNull(message = "ID不能为空", groups = UpdateGroup.class)
    @TableId
    private Long brandId;
    /**
     * 名称
     */
    @NotNull(message = "品牌名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String name;
    /**
     * logo
     */
    private String logo;
    /**
     *
     */
    private String descript;
    /**
     *
     */
    @ListValue(values = {0, 1}, groups = {AddGroup.class, UpdateGroup.class})
    private Integer showStatus;
    /**
     *
     */
    private String firstLetter;
    /**
     *
     */
    private Integer sort;

}
